package blog.mapper;

import java.util.List;

import blog.entity.ArticleTagRef;
import blog.entity.Tag;

public interface ArticleTagRefMapper {
/**
 * 通过id查询文章个数
 * @param tagId
 * @return
 */
	Integer countArticleByTagId(Integer tagId);
/**
 * 添加文章与标签关联
 * @param articleTagRef
 */
void addArticleTag(ArticleTagRef articleTagRef);

/**
 * 通过id获取关联
 * @param articleId
 * @return
 */
List<Tag> listTagByArticleId(Integer articleId);
/**
 * 通过文章id删除关联
 * @param articleId 文章id
 */
void deleteByArticleId(Integer articleId);

}
